package com.deshan.websys.code.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
@TableName("sms_home_advertise")
public class SmsHomeAdvertise implements Serializable {

    private static final long serialVersionUID = -51053969186379908L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @TableField("name")
    private String name;

//    @ApiModelProperty(value = "轮播位置：0->PC首页轮播；1->app首页轮播")
    @TableField("type")
    private Integer type;
    @TableField("pic")
    private String pic;
    @TableField("start_time")
    private Date startTime;
    @TableField("end_time")
    private Date endTime;

//    @ApiModelProperty(value = "上下线状态：0->下线；1->上线")
    @TableField("status")
    private Integer status;

//    @ApiModelProperty(value = "点击数")
    @TableField("click_count")
    private Integer clickCount;

//    @ApiModelProperty(value = "下单数")
    @TableField("order_count")
    private Integer orderCount;

//    @ApiModelProperty(value = "链接地址")
    @TableField("url")
    private String url;

//    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;

//    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @TableField("legalCode")
    private String legalCode;
    
    /**
     * 关联的产品id
     */
    private String gid;
    
    private int pageType = 2;

}
